package bfunction

import (
    "io/ioutil"
    "os"
)

func FileGetContents(path string) (content string, err error) {
    handle, err := os.Open(path)
    if err != nil {
        return
    }
    defer handle.Close()
    buffer, err := ioutil.ReadAll(handle)
    if err != nil {
        return
    }
    content = string(buffer)
    return
}
